Fitting your model is only the beginning: Bayesian posterior probability checks with rvars {https://t.co/SVc4km6YuA} #rstats #DataScience
— R-bloggers (@Rbloggers) August 10, 2021
ggalt: Make a Dumbbell Plot to Visualize Change in ggplot2 {https://t.co/R9EkbP29bz} #rstats #DataScience
— R-bloggers (@Rbloggers) August 12, 2021
Supervised Machine Learning for Text Analysis in R is now complete {https://t.co/mt7lIgLGVT} #rstats #DataScience
— R-bloggers (@Rbloggers) August 13, 2021
Trying to Trick Linear Regression – Estimating Coefficients for Variables in R {https://t.co/dWa4LhVh6Q} #rstats #DataScience
— R-bloggers (@Rbloggers) August 7, 2021
Creating a composite gif with multiple gganimate panels {https://t.co/tsz9wglJaL} #rstats #DataScience
— R-bloggers (@Rbloggers) August 11, 2021
How to Create Pareto Chart in R {https://t.co/WvpAsoVFBB} #rstats #DataScience
— R-bloggers (@Rbloggers) August 9, 2021
Machine Learning Strategy (Part 2) {https://t.co/tY9BMWx4Ey} #rstats #DataScience
— R-bloggers (@Rbloggers) August 13, 2021
Fast SQL Server Imports with R {https://t.co/dXRx5pwUL4} #rstats #DataScience
— R-bloggers (@Rbloggers) August 9, 2021
Tune xgboost models with early stopping to predict shelter animal status {https://t.co/DNeVb6IjuW} #rstats #DataScience
— R-bloggers (@Rbloggers) August 8, 2021
How to Calculate Cross-Correlation in R {https://t.co/c7L45jcWky} #rstats #DataScience
— R-bloggers (@Rbloggers) August 11, 2021
R / Medicine 2021 {https://t.co/n8ojzXAZ5H} #rstats #DataScience
— R-bloggers (@Rbloggers) August 12, 2021
Pricing of FX Forward in R and Excel {https://t.co/2al2b4zGrZ} #rstats #DataScience
— R-bloggers (@Rbloggers) August 8, 2021
Fitting your model is only the beginning: Bayesian posterior probability checks with rvars {https://t.co/SVc4km6YuA} #rstats #DataScience
— R-bloggers (@Rbloggers) August 10, 2021
ggalt: Make a Dumbbell Plot to Visualize Change in ggplot2 {https://t.co/R9EkbP29bz} #rstats #DataScience
— R-bloggers (@Rbloggers) August 12, 2021
How to organize your analyses with R Studio Projects {https://t.co/yKvlwGSOYa} #rstats #DataScience
— R-bloggers (@Rbloggers) July 21, 2021
FeatureTerminatoR – a package to remove unimportant variables from statistical and machine l {https://t.co/bD8tbLZmUZ} #rstats #DataScience
— R-bloggers (@Rbloggers) July 15, 2021
Soccer Analytics for Beginners: An R Tutorial on EURO 2020 Data – Web Scraping & Radar Plots {https://t.co/wk5XdvxfWU} #rstats #DataScience
— R-bloggers (@Rbloggers) July 20, 2021
ggdist: Make a Raincloud Plot to Visualize Distribution in ggplot2 {https://t.co/Buy86bYiwS} #rstats #DataScience
— R-bloggers (@Rbloggers) July 22, 2021
How to perform ANCOVA in R {https://t.co/J4GIrRDJbG} #rstats #DataScience
— R-bloggers (@Rbloggers) July 22, 2021
Supervised Machine Learning for Text Analysis in R is now complete {https://t.co/mt7lIgLGVT} #rstats #DataScience
— R-bloggers (@Rbloggers) August 13, 2021
June 2021: “Top 40” New CRAN Packages {https://t.co/vfApIFm7HI} #rstats #DataScience
— R-bloggers (@Rbloggers) July 27, 2021
COUNTIF Function in R {https://t.co/I6251dIRMJ} #rstats #DataScience
— R-bloggers (@Rbloggers) July 18, 2021
ggforce: Make a Hull Plot to Visualize Clusters in ggplot2 {https://t.co/K4EfQe86CG} #rstats #DataScience
— R-bloggers (@Rbloggers) July 27, 2021
When k-means clustering fails {https://t.co/yzzkVXRHWw} #rstats #DataScience
— R-bloggers (@Rbloggers) July 16, 2021
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```